html {
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    /*background: #ffffff url('../img/geometry2.png'); !* Background pattern from Subtle Patterns *!*/
    font-family: 'Coda', cursive;
    background: -webkit-gradient(linear, left top, left bottom, from(#4f76e4), to(#24b0e8) );
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

h1 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
}

/*
 * Styles for the deck of cards
 */

.deck {
    width: 100%;
    min-height: 400px;
    /*background: linear-gradient(160deg, #02ccba 0%, #aa7ecd 100%);*/
    padding: 0 20px;
    /*border-radius: 30px;*/
    /*box-shadow: 12px 15px 20px 0 rgba(46, 61, 73, 0.5);*/
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin: 0;
}

.deck .card {
    margin-top: 10px;
    height: 80px;
    width: 26%;
    background: #2e3d49;
    font-size: 0;
    color: #ffffff;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 5px 2px 20px 0 rgba(46, 61, 73, 0.5);
    transform: rotateY(180deg);
    transition: transform 0.3s;
}

.deck .card.h{
    height: 130px;
    width: 30%;
}

.deck .card img{
    height: 80px;
    width: 100%;
    display:none;
}
.deck .card.h img{
    height: 130px;
}

.deck .card.open {
    transform: rotateY(360deg);
    background: #02b3e4;
    cursor: default;
    transition: transform 0.3s;
}

.deck .card.open img{
    display: inline-block;
}

.deck .card.show {
    font-size: 33px;
}

.deck .card.match {
    cursor: default;
    background: #02ccba;
    font-size: 33px;
    animation: fbig 0.3s alternate;
}
@keyframes fbig {
    from{transform: scale(1)}
    to {transform: scale(1.1)}
}
/*
 * Styles for the Score Panel
 */

.score-panel {
    text-align: left;
    width: 100%;
    margin: 10px 0;
    padding: 0 20px;
}

.score-panel .stars {
    margin: 0;
    padding: 0;
    display: inline-block;
    margin: 0 5px 0 0;
}

.score-panel .stars li {
    list-style: none;
    display: inline-block;
}

.score-panel .restart {
    float: right;
    cursor: pointer;
    font-size: 26px;
}
